package cn.kgc.util.resultutil.exception;

import cn.kgc.util.resultutil.ResultConstant;
import lombok.Getter;

/**
 * @author YC
 * 此项目的异常父类
 */
@Getter
public class HttpException extends RuntimeException {

    /**
     * 状态码
     */
    private final Integer code;

    public HttpException(ResultConstant resultConstant) {
        super(resultConstant.getMessage());
        this.code = resultConstant.getCode();
    }

}
